﻿<Window
		xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
		xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
		xmlns:ei="http://schemas.microsoft.com/expression/2010/interactions" xmlns:ee="http://schemas.microsoft.com/expression/2010/effects" xmlns:i="http://schemas.microsoft.com/expression/2010/interactivity" x:Class="BaMusaSoft.RPS.View.AddClaimDetailsWindow"
		Title="AddClaimDetailsWindow" Height="300" Width="515"
		FlowDirection="RightToLeft" WindowStyle="ToolWindow" WindowStartupLocation="CenterOwner"
		ResizeMode="NoResize" FontFamily="Simplified Arabic" FontSize="16">
	<Grid>
		<VisualStateManager.CustomVisualStateManager>
			<ei:ExtendedVisualStateManager/>
		</VisualStateManager.CustomVisualStateManager>
		<VisualStateManager.VisualStateGroups>
			<VisualStateGroup x:Name="ViewListboxState">
				<VisualStateGroup.Transitions>
					<VisualTransition GeneratedDuration="0:0:1">
						<ei:ExtendedVisualStateManager.TransitionEffect>
							<ee:WipeTransitionEffect/>
						</ei:ExtendedVisualStateManager.TransitionEffect>
					</VisualTransition>
				</VisualStateGroup.Transitions>
				<VisualState x:Name="ListGotFocus">
					<Storyboard>
						<ColorAnimationUsingKeyFrames Storyboard.TargetProperty="(Panel.Background).(GradientBrush.GradientStops)[0].(GradientStop.Color)" Storyboard.TargetName="contractList">
							<EasingColorKeyFrame KeyTime="0" Value="#FFB3DBEF"/>
						</ColorAnimationUsingKeyFrames>
						<ThicknessAnimationUsingKeyFrames Storyboard.TargetProperty="(Border.BorderThickness)" Storyboard.TargetName="contractList">
							<EasingThicknessKeyFrame KeyTime="0" Value="2"/>
						</ThicknessAnimationUsingKeyFrames>
					</Storyboard>
				</VisualState>
				<VisualState x:Name="ListLostFocus">
					<Storyboard>
						<ColorAnimationUsingKeyFrames Storyboard.TargetProperty="(Panel.Background).(GradientBrush.GradientStops)[0].(GradientStop.Color)" Storyboard.TargetName="contractList">
							<EasingColorKeyFrame KeyTime="0" Value="White"/>
						</ColorAnimationUsingKeyFrames>
						<ThicknessAnimationUsingKeyFrames Storyboard.TargetProperty="(Border.BorderThickness)" Storyboard.TargetName="contractList">
							<EasingThicknessKeyFrame KeyTime="0" Value="1"/>
						</ThicknessAnimationUsingKeyFrames>
					</Storyboard>
				</VisualState>
			</VisualStateGroup>
		</VisualStateManager.VisualStateGroups>
		<Grid.RowDefinitions>
			<RowDefinition Height="*" />
			<RowDefinition Height="Auto" />
			<RowDefinition Height="Auto"/>
		</Grid.RowDefinitions>
		<ListBox ItemsSource="{Binding Contracts}" x:Name="contractList" Margin="8,10,8,3"
				 IsSynchronizedWithCurrentItem="True">
			<ListBox.Background>
				<LinearGradientBrush EndPoint="0.5,1" MappingMode="RelativeToBoundingBox" StartPoint="0.5,0">
					<GradientStop Color="White" Offset="0"/>
					<GradientStop Color="White" Offset="1"/>
				</LinearGradientBrush>
			</ListBox.Background>
			<ListBox.ItemTemplate>
				<DataTemplate>
					<StackPanel Orientation="Horizontal">
						<CheckBox  Checked="AddContract" Unchecked="RemoveContract" IsEnabled="{Binding IsSelected, RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type ListBoxItem}}}">
							<TextBlock Text="{Binding Property.Description}"/>
						</CheckBox>
					</StackPanel>
				</DataTemplate>
			</ListBox.ItemTemplate>
		</ListBox>
		<Rectangle Grid.Row="1" Height="2" StrokeThickness="2" Stretch="Fill" Stroke="#FFC8C7C7"/>
		<StackPanel Grid.Row="2" Orientation="Horizontal" Background="#FFF0F0F0">
			<StackPanel HorizontalAlignment="Right" Margin="8">
				<Button Content="إضافة" x:Name="Halo" Click="OkButtonClick" Width="75" Height="33" IsDefault="True"/>
	
			</StackPanel>
		</StackPanel>
		
	</Grid>
</Window>
